package com.lianzheng.model;

/*
 *  Created on Mon Feb 27 18:18:24 CST 2012
 *
 */
import java.io.Serializable;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;

/**
 * TbSysUserinfo Base Java Bean
 * 
 * This class is the base class for the model
 * 
 */
 
public class TbSysUserinfo extends com.lianzheng.model.BaseObject implements Serializable {

    protected String userid;
	protected String username;
	protected String userpassword;
	protected String usertype;
	protected String status;


  /**
	*
	* Default Empty Constructor for class TbSysUserinfo
	*
	*/
	public TbSysUserinfo () {
		super();
	}
	
  /**
	*
	* Default All Fields Constructor for class TbSysUserinfo
	*
	*/
	public TbSysUserinfo (
		 String in_userid
		,String in_username
		,String in_userpassword
		,String in_usertype
		,String in_status
        ) {
		this.setUserid(in_userid);
		this.setUsername(in_username);
		this.setUserpassword(in_userpassword);
		this.setUsertype(in_usertype);
		this.setStatus(in_status);
    }

    
  /**
	*
	* @return String
	*/
	public String getUserid() {
		return this.userid;
	}
	
  /**
	* Set the userid
	*/	
	public void setUserid(String aValue) {
		this.userid = aValue;
	}	
  /**
	*
	* @return String
	*/
	public String getUsername() {
		return this.username;
	}
	
  /**
	* Set the username
	*/	
	public void setUsername(String aValue) {
		this.username = aValue;
	}	
  /**
	*
	* @return String
	*/
	public String getUserpassword() {
		return this.userpassword;
	}
	
  /**
	* Set the userpassword
	*/	
	public void setUserpassword(String aValue) {
		this.userpassword = aValue;
	}	
  /**
	*
	* @return String
	*/
	public String getUsertype() {
		return this.usertype;
	}
	
  /**
	* Set the usertype
	*/	
	public void setUsertype(String aValue) {
		this.usertype = aValue;
	}	
  /**
	*
	* @return String
	*/
	public String getStatus() {
		return this.status;
	}
	
  /**
	* Set the status
	*/	
	public void setStatus(String aValue) {
		this.status = aValue;
	}	
   /**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof TbSysUserinfo)) {
			return false;
		}
		TbSysUserinfo rhs = (TbSysUserinfo) object;
		return new EqualsBuilder()
				.append(this.userid, rhs.userid)
				.append(this.username, rhs.username)
				.append(this.userpassword, rhs.userpassword)
				.append(this.usertype, rhs.usertype)
				.append(this.status, rhs.status)
				.isEquals();
	}
	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973)
				.append(this.userid) 
				.append(this.username) 
				.append(this.userpassword) 
				.append(this.usertype) 
				.append(this.status) 
				.toHashCode();
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this)
				.append("userid", this.userid) 
				.append("username", this.username) 
				.append("userpassword", this.userpassword) 
				.append("usertype", this.usertype) 
				.append("status", this.status) 
				.toString();
	}

	
}